package com.hexinfo.dmpro.sparing.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 删除两年前日期分区数据实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DateDataDTO {

    //库名
    private String dbName;
    //表名
    private String tbName;
    //源分区字段名
    private String souColName;
    //日期分区字段名
    private String dateColName;
    //同步范围
    private int syncRange;
    //删除两年前日期分区数据sql
    private String delSql;
    //源集群的查询所有日期分区sql
    private String souSql;
    //目标集群的查询所有日期分区sql
    private String tarSql;
    //源名
    private String source;
    //表级日志分析记录id
    private String tableId;

    //库.表
    public String getDbTbName(){
        return dbName + "." + tbName;
    }

}
